<?php

class Nutri_Model_Login extends Nutri_Model_Abstract
{
	protected $_user;
	protected $_pass;
 
 	public function setUser($value)
    {
        $this->_user = $value;
        return $this;
    }
 
    public function getUser()
    {
        return $this->_user;
    }
 	
 	public function setPass($value)
    {
        $this->_pass = $value;
        return $this;
    }
 
    public function getPass()
    {
        return $this->_pass;
    }
    
	public function toArray()
    {
        return array (
            'id' => $this->getId(),
            'user' => $this->getUser(),
            'pass' => $this->getPass(),
        );
    }
    
 	public function getMapper()
    {
        if (null === $this->_mapper) {
            $this->setMapper('Nutri_Model_Mapper_Login');
        }
        return $this->_mapper;
    }
}